package day03;

import java.util.Scanner;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/9
 */
public class Test02 {
    public static void main(String[] args) {
        System.out.print("请输入考试成绩：");
        Scanner sc = new Scanner(System.in);
        int score = sc.nextInt();//考试成绩
        int level = score / 10;
        switch (level){
            case 10:
            case 9:
                System.out.println("级别为A级");
                break;
            case 8:
                System.out.println("级别为B级");
                break;
            case 7:
                System.out.println("级别为C级");
                break;
            case 6:
                System.out.println("级别为D级");
                break;
            default:System.out.println("级别为不合格");
        }
    }
}
